#ifndef APPENDER_H
#define APPENDER_H

#include "Types.h"
#include "Entry.h"

namespace logging {

class Appender
{
protected:
	Appender(const char* name);

public:
	virtual ~Appender();
	virtual void write(Entry *entry) = 0;

	char* getName() const { return _name; }

	static char* levelToString(Level level);

private:
	char *_name;
};

}

#endif /* APPENDER_H */
